package com.qdaily.ui.net.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created with IntelliJ IDEA.
 * User: Felix
 * Date: 3/30/15
 * Time: 17:15
 * QQ:74104
 * Email:lovejiuwei@gmail.com
 */
public class HomeLeftSidebarFeed implements Parcelable {
    private int id = 0;
    private String type = "";
    private String title = "";
    private String image = "";
    private String image_highlighted = "";

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage_highlighted() {
        return image_highlighted;
    }

    public void setImage_highlighted(String image_highlighted) {
        this.image_highlighted = image_highlighted;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.type);
        dest.writeString(this.title);
        dest.writeString(this.image);
        dest.writeString(this.image_highlighted);
    }

    public HomeLeftSidebarFeed() {
    }

    private HomeLeftSidebarFeed(Parcel in) {
        this.id = in.readInt();
        this.type = in.readString();
        this.title = in.readString();
        this.image = in.readString();
        this.image_highlighted = in.readString();
    }

    public static final Creator<HomeLeftSidebarFeed> CREATOR = new Creator<HomeLeftSidebarFeed>() {
        public HomeLeftSidebarFeed createFromParcel(Parcel source) {
            return new HomeLeftSidebarFeed(source);
        }

        public HomeLeftSidebarFeed[] newArray(int size) {
            return new HomeLeftSidebarFeed[size];
        }
    };

    @Override
    public String toString() {
        return "HomeLeftSidebarFeed{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", title='" + title + '\'' +
                ", image='" + image + '\'' +
                ", image_highlighted='" + image_highlighted + '\'' +
                '}';
    }
}
